package com.zking.ssm.DYM.service.impl;

import com.zking.ssm.DYM.mapper.HotelMemberLevelMapper;
import com.zking.ssm.DYM.model.HotelMemberLevel;
import com.zking.ssm.DYM.service.IHotelMemberLevelService;
import com.zking.ssm.util.PageBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description
 * @Author XXXXX
 * @Date 2021/01/23 21:05
 */
@Service
public class HotelMemberLevelServiceImpl implements IHotelMemberLevelService {
    @Autowired
    private HotelMemberLevelMapper hotelMemberLevelMapper;
    @Override
    public int deleteByPrimaryKey(Integer id) {
        return hotelMemberLevelMapper.deleteByPrimaryKey(1);
    }

    @Override
    public int insert(HotelMemberLevel record) {
        return hotelMemberLevelMapper.insert(record);
    }

    @Override
    public HotelMemberLevel selectByPrimaryKey(Integer id) {
        return hotelMemberLevelMapper.selectByPrimaryKey(1);
    }

    @Override
    public int updateByPrimaryKey(HotelMemberLevel record) {
        return hotelMemberLevelMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<HotelMemberLevel> list(HotelMemberLevel record, PageBean pageBean) {
        List<HotelMemberLevel> hotelMemberLevelList = hotelMemberLevelMapper.list(record);
        return hotelMemberLevelList;
    }
}
